package com.demo.controller;

import com.demo.service.ServiceDemo;
import com.demo.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

/**
 * @Author YuanYuan
 * @Date 2023/2/7
 * @Time 16:37
 */

@Controller
public class ControllerDemo {

    @Autowired
    private ServiceDemo serviceDemo;

    public User getServiceDemo() {
        return serviceDemo.getRepositoryDemo().creatUser();
    }
}
